home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 March - Disc 2
/
Macworld (1999-03) (Disk 2).dmg
/
Scripting Tools
/
Raise Trademark Symbols FREE
/
Raise Trademark Symbols •Code•
< prev
next >
Wrap
Text File
|
1997-07-30
|
825b
|
22 lines
tell application "QuarkXPress™"
activate
if exists (document 1) then
tell document 1
set x to display dialog "Select a Type Style for ® and ™." buttons {"Superior", "Superscript", "Cancel"} default button 1
if button returned of x = "Superior" then
set style of every character of every story ¬
where (it is "™") or (it is "®") to ¬
{on styles:{superior}, off styles:{superscript}}
else if button returned of x = "Superscript" then
set style of every character of every story ¬
where (it is "™") or (it is "®") to ¬
{on styles:{superscript}, off styles:{superior}}
else
--no characters present in document
end if
end tell
display dialog "This script was completed successfully."
else
display dialog "You must have a document open to run this script."
end if
end tell